package com.tyk.bookstore.back.system.model.query;

import com.tyk.bookstore.back.system.valid.annotation.PermissionFieldValid;
import com.tyk.bookstore.back.system.valid.type.PermissionFieldValidType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class PermissionAddQuery {

	@Schema(description = "权限名称")
	@NotBlank
	@PermissionFieldValid(PermissionFieldValidType.NAME)
	private String name;

	@Schema(description = "权限字符串")
	@NotBlank
	@PermissionFieldValid(PermissionFieldValidType.CODE)
	private String code;

	@Schema(description = "权限描述")
	@NotBlank
	@PermissionFieldValid(PermissionFieldValidType.DESCRIPTION)
	private String description;

	@Schema(description = "权限分组名称")
	@NotBlank
	@PermissionFieldValid(PermissionFieldValidType.GROUP_NAME)
	private String groupName;

}
